home *** CD-ROM | disk | FTP | other *** search
/ Acorn Risc Technologies StrongARM CD-ROM / Acorn Risc Technologies StrongARM CD-ROM.iso / software / utils / blackho / !BlakHole2_!FatHelp_Help_Singlarity < prev    next >
Encoding:
Text File  |  1996-02-08  |  8.2 KB  |  103 lines

  1. {title}Singularity
  2. {sprite}bin2
  3. Singularity is an extension to Black Hole. Singularity lets you partly integrate Black Hole's wastebin functions with the RISC OS Filer's functions. If you have Black Hole running, then there are two ways you can delete a file:
  4. {tab}
  5. 1) You can drag the icon for the file from the directory viewer to the Black Hole icon. The file will be deleted subject to Black Hole's options. The wastebin part of Black Hole will keep a copy of the file if you have configured it to do so. 
  6. {sprite}delfiler
  7. 2) You can click the MENU button over the file's icon and select 'Delete' from the Filer menu which appears. This will delete the file but Black Hole will not know about this and so the wastebin part of Black Hole will not be able to keep a copy.
  8. {notab}
  9. This is where Singularity comes in. Singularity (if you enable it) will trap all those occasions on which you delete a file by method 2 above and willkeep a copy in the Bin Directory.
  10. {subhead}Configuring Singularity
  11. Singularity is configured via the Black Hole Configuration window.
  12. [1]
  13. To turn Singularity on, select the 'Trap Filer Deletes' option. If you want to ignore Singularity, make sure the options
  14. 'Trap Filer Deletes'
  15. 'Report'
  16. 'Show Sprite'
  17. are OFF.
  18. I shan't explain the other options as they would probably make your head hurt.
  19. [234]
  20. The options you use are now described.
  21. Singularity is OFF by default. You can turn it on in a number of ways, but one to note is the clicking ADJUST (the right mouse button) over the Black Hole icon will toggle Singularity between ON and OFF. A small window will also open for a short time to inform you that you have just done something.
  22. [2]
  23. To turn Singularity on from the configuration window, select the 'Trap Filer Deletes' option. The other options do the following:
  24. {subsub}Show Sprite
  25. will put an icon on the iconbar which will show if Singularity is currently on or off. Clicking on the icon will toggle between the two. The Singularity icon has a menu. The 'Remove' option on this menu will remove the singularity icon from the iconbar but will NOT turn it off if it is on.
  26. {subsub}Remove at exit
  27. should be left on.
  28. {subsub}Report
  29. will make a small window open every time Singularity traps a deletion. The window will close after a few seconds.
  30. {subsub}Ignore ADFS floppy discs
  31. If this is ON, Singularity will not be applied to deletions from floppy discs. This is usually a good idea.
  32. The bit about File Systems to Ignore can be ignored.
  33. [4]  
  34. For Black Hole, the Singularity aspect is controlled by the module 'BlackHole'
  35. [34] 
  36. {subhead}Trap Filer Deletes:
  37. With this option on, Black Hole will intercept all occasions on which you select 'Delete' from a Filer menu (i.e. when you delete a file in the normal way). The file will be copied to the Bin directory before being deleted.
  38. There are a few points to note about this:
  39. 1) The wipe options for this are taken from the filer, not Black Hole's internal Config window.
  40. 2) Due to the way it works, all directory structure is lost.
  41. 3) Deleting today's bin directory from the Filer menu with this option On will simply cause the directory to be copied inside itself. UNLESS your Bin directory is inside Wimp$ScrapDir.
  42. 4) To prevent complications, this option is temporarily turned OFF during any Black Hole operation involving deletions. If I did not do this, every file would be copied twice.
  43. 5) This bit will also intercept any delete operations carried out from the command line.     
  44. {subhead}Show Sprite:
  45. With this ON, a sprite will be placed on the iconbar next to the Black Hole icon. This sprite will have the word On or Off under it to indicate the current state of the above option. Clicking SELECT on this icon will toggle the state of the option. Clicking MENU will open a menu with a 'Remove' option which removes the sprite from the iconbar. This does not turn Singularity off.
  46. {subhead}Remove at Exit:
  47. With this ON, the BlackHole module will be killed when you quit Black Hole. I recommend that you do this.
  48. {subhead}Report:
  49. With this option ON, every time a file is captured by this method a small window will open to inform you which file has been caught. The window will close after a short time, or you can close it by clicking on its OK button.
  50. {subhead}Ignore ADFS floppy discs:
  51. Trapping deletions from floppy discs can be a slow process and it is very rare that you would want to do this. Turn this option on to stop Singularity applying to ADFS floppy discs (most floppy discs are ADFS).
  52. {subhead}File Systems to Ignore:
  53. Using this you can set up a list of up to 12 filing systems that are immune from being trapped by Singularity.
  54. To add a filing system to the list, click on Add... This opens a menu of all the currently resident filing systems (eg ADFS, RAM if you have a RAM disc.) Select one and it will be added to the list. The last entry in the menu is a writeable icon into which you can type the name of any other filing system
  55. [3]
  56. The name of the filing system is what appears at the very left of a directory heading -  eg for the directory ADFS::IDEDisc4.$ the filing system is ADFS.
  57. [34]
  58. {title}Compatibility Issues:
  59. Singularity has been tested with as many filing systems as possible. Two problems are known about:
  60. 1) Singularity cannot differentiate between an Image filing system and it's parent. E.g. a PC emulator DOS partition looks to Singularity like an ADFS disc, even though it's under the control of DOSFS.
  61. 2) If you use SparkFS to create archives in the 'Spark Dir' format and delete any files from there, Singularity will copy them over in COMPRESSED form. This is due to the way this type of Archive is controlled by SparkFS. The same may be true of certain versions of ArcFS, but I haven't tried it 'cos my version's read only.
  62. With normal archives (and with CFS) the files are decompressed on the fly.
  63. 3) RISC OS 3 implements a lot of devices as pseudo-filing systems. One example is the parallel port. Singularity will ignore all the device filing systems that I currently know about.
  64. [4]
  65. The code to do this is quick and therefore does not measurably slow down
  66. the response of these systems.
  67. For insterested parties, the filing systems (and their numbers) that are ignored are:
  68. {tab}
  69.    NetPrint (12)
  70.    Null (13)
  71.    Printer (14)
  72.    Serial (15)
  73.    Vdu (17)
  74.    RawVdu (18)
  75.    Kbd (19)
  76.    RawKbd (20)
  77.    DeskFS (21)
  78.    Computer Concepts RomFS (22)
  79.    Streamer (25)
  80.    Digitiser (27)
  81.    Scanner (28)
  82.    PipeFS (47)
  83.    DeviceFS (53)
  84.    Parallel (54)
  85. {notab}
  86. {title}The BlackHole module.
  87. As mentioned above, the Filer 'Delete' trapping is controlled by a module called BlackHole. Here, for the interested, are details.
  88. BlackHole provides the following commands.
  89. {tab}
  90. *BinOn, *BinOff  -  The functions of which should be obvious.
  91. *BinStatus       -  Which tells you whether the Bin is currently on or off.
  92. *BinToggle       -  Toggles the On/Off status of the bin.
  93. *BinIgnore       -  Takes one parameter, which is the NAME of a filing system to be ignored.
  94. *BinIgnoreClear  -  Clears the list of filing systems to ignore
  95. *BinIgnoreADFSFloppies
  96. *BinCatchADFSFloppies  - both of which are self-explanatory.
  97. {notab}
  98. You also need to ensure that the System Variable BlackHole$BinDir is set to point to the root bin directory for TODAY. Black Hole does this automatically
  99. If you use *BinIgnore you MUST check that the list of filing system names is no more than 128 bytes long (one byte for each character in the name, plus one more). Black Hole does this, and if you don't you could cause horrible things to happen.
  100. {subhead}Points to note:
  101. BlackHole does a *BinOFF before every delete operation it does, then does *BinON if necessary when it has finished. This is the only way I can think of to stop it copying all the files twice. I can't let *BinOn do all the copying because a) Some people won't want to use it, (b) all directory structure is lost.
  102. *BinOn will ignore all disc operations which take place in Wimp$ScrapDir. If I didn't do this, all the temporay files placed in Wimp$ScrapDir by applications would be copied to the bin before being deleted. This is not particulary useful, and I have seen applications crash because of this. To this end, you should make sure that if you own any applications which allow you to define a scrap directory just for them, you should define it somewhere in Wimp$ScrapDir.
  103.